<?php
/**
 * Display Messages Associate to the missions
 * 
 * 
 */

use Fox\Generator;
$xview = Xview::instance();
/* @var $mission Hive\Mission */
$mission = $xview->component("missions", "object");
// Customizing
$customizing = Hive\Mission\Customizing::instance();
$customizing->trackSummaryPage(array('mod' => 'missions','act'=>'messages'));
$mid = $mission->getId();
// Page Title
$header = new Fox\Html\Header\Content('messages',Msg(Hive::BUNDLE,Hive::MESSAGES));

$summary = true;//@TODO add a customizing point
?>
<div id="messagesContent">
	<div><?php echo $header->render();?></div>
	<div class="contentArea">
		<div class="mbs gsl" id="messages-container">
				<?php echo $xview->module(Generator::url('messages','list',null,array(
									'area' => 'mission',
									'summary' => $summary,
									'reference' => $mid,
									'container' => 'messages-container'))); ?>
		</div>
	</div>
</div>